package generator.domain;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 
 * @TableName counselors
 */
@Data
public class Counselors {
    /**
     * 
     */
    private Integer id;

    /**
     * 关联用户账户ID（原外键，现保留字段）
     */
    private Integer counselorId;

    /**
     * 咨询师真实姓名或展示名
     */
    private String name;

    /**
     * 性别
     */
    private Object gender;

    /**
     * 头像/证件照URL
     */
    private String photo;

    /**
     * 学历
     */
    private Object education;

    /**
     * 专业方向
     */
    private String major;

    /**
     * 资格证书详情
     */
    private String certification;

    /**
     * 从业年限
     */
    private Integer experienceYears;

    /**
     * 擅长领域
     */
    private String specialization;

    /**
     * 工作流派/疗法
     */
    private String workStyle;

    /**
     * 每次咨询费用
     */
    private BigDecimal consultationFee;

    /**
     * 所在城市
     */
    private String city;

    /**
     * 可选咨询方式（如["ONLINE","OFFLINE"]）
     */
    private Object consultationMethod;

    /**
     * 咨询类型
     */
    private String consultationType;

    /**
     * 服务对象
     */
    private Object targetGroup;

    /**
     * 个人简介
     */
    private String introduction;

    /**
     * 平台评分
     */
    private BigDecimal rating;

    /**
     * 累计咨询次数
     */
    private Integer totalConsultations;

    /**
     * 资质状态
     */
    private Object status;

    /**
     * 创建时间
     */
    private LocalDateTime createdAt;

    /**
     * 更新时间
     */
    private LocalDateTime updatedAt;

    /**
     * 联系电话
     */
    private String contactPhone;

    /**
     * 出生日期
     */
    private LocalDate birthDate;

    /**
     * 联系邮箱
     */
    private String contactEmail;

    /**
     * 微信号
     */
    private String wechatAccount;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Counselors other = (Counselors) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getCounselorId() == null ? other.getCounselorId() == null : this.getCounselorId().equals(other.getCounselorId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getGender() == null ? other.getGender() == null : this.getGender().equals(other.getGender()))
            && (this.getPhoto() == null ? other.getPhoto() == null : this.getPhoto().equals(other.getPhoto()))
            && (this.getEducation() == null ? other.getEducation() == null : this.getEducation().equals(other.getEducation()))
            && (this.getMajor() == null ? other.getMajor() == null : this.getMajor().equals(other.getMajor()))
            && (this.getCertification() == null ? other.getCertification() == null : this.getCertification().equals(other.getCertification()))
            && (this.getExperienceYears() == null ? other.getExperienceYears() == null : this.getExperienceYears().equals(other.getExperienceYears()))
            && (this.getSpecialization() == null ? other.getSpecialization() == null : this.getSpecialization().equals(other.getSpecialization()))
            && (this.getWorkStyle() == null ? other.getWorkStyle() == null : this.getWorkStyle().equals(other.getWorkStyle()))
            && (this.getConsultationFee() == null ? other.getConsultationFee() == null : this.getConsultationFee().equals(other.getConsultationFee()))
            && (this.getCity() == null ? other.getCity() == null : this.getCity().equals(other.getCity()))
            && (this.getConsultationMethod() == null ? other.getConsultationMethod() == null : this.getConsultationMethod().equals(other.getConsultationMethod()))
            && (this.getConsultationType() == null ? other.getConsultationType() == null : this.getConsultationType().equals(other.getConsultationType()))
            && (this.getTargetGroup() == null ? other.getTargetGroup() == null : this.getTargetGroup().equals(other.getTargetGroup()))
            && (this.getIntroduction() == null ? other.getIntroduction() == null : this.getIntroduction().equals(other.getIntroduction()))
            && (this.getRating() == null ? other.getRating() == null : this.getRating().equals(other.getRating()))
            && (this.getTotalConsultations() == null ? other.getTotalConsultations() == null : this.getTotalConsultations().equals(other.getTotalConsultations()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getCreatedAt() == null ? other.getCreatedAt() == null : this.getCreatedAt().equals(other.getCreatedAt()))
            && (this.getUpdatedAt() == null ? other.getUpdatedAt() == null : this.getUpdatedAt().equals(other.getUpdatedAt()))
            && (this.getContactPhone() == null ? other.getContactPhone() == null : this.getContactPhone().equals(other.getContactPhone()))
            && (this.getBirthDate() == null ? other.getBirthDate() == null : this.getBirthDate().equals(other.getBirthDate()))
            && (this.getContactEmail() == null ? other.getContactEmail() == null : this.getContactEmail().equals(other.getContactEmail()))
            && (this.getWechatAccount() == null ? other.getWechatAccount() == null : this.getWechatAccount().equals(other.getWechatAccount()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getCounselorId() == null) ? 0 : getCounselorId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getGender() == null) ? 0 : getGender().hashCode());
        result = prime * result + ((getPhoto() == null) ? 0 : getPhoto().hashCode());
        result = prime * result + ((getEducation() == null) ? 0 : getEducation().hashCode());
        result = prime * result + ((getMajor() == null) ? 0 : getMajor().hashCode());
        result = prime * result + ((getCertification() == null) ? 0 : getCertification().hashCode());
        result = prime * result + ((getExperienceYears() == null) ? 0 : getExperienceYears().hashCode());
        result = prime * result + ((getSpecialization() == null) ? 0 : getSpecialization().hashCode());
        result = prime * result + ((getWorkStyle() == null) ? 0 : getWorkStyle().hashCode());
        result = prime * result + ((getConsultationFee() == null) ? 0 : getConsultationFee().hashCode());
        result = prime * result + ((getCity() == null) ? 0 : getCity().hashCode());
        result = prime * result + ((getConsultationMethod() == null) ? 0 : getConsultationMethod().hashCode());
        result = prime * result + ((getConsultationType() == null) ? 0 : getConsultationType().hashCode());
        result = prime * result + ((getTargetGroup() == null) ? 0 : getTargetGroup().hashCode());
        result = prime * result + ((getIntroduction() == null) ? 0 : getIntroduction().hashCode());
        result = prime * result + ((getRating() == null) ? 0 : getRating().hashCode());
        result = prime * result + ((getTotalConsultations() == null) ? 0 : getTotalConsultations().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode());
        result = prime * result + ((getUpdatedAt() == null) ? 0 : getUpdatedAt().hashCode());
        result = prime * result + ((getContactPhone() == null) ? 0 : getContactPhone().hashCode());
        result = prime * result + ((getBirthDate() == null) ? 0 : getBirthDate().hashCode());
        result = prime * result + ((getContactEmail() == null) ? 0 : getContactEmail().hashCode());
        result = prime * result + ((getWechatAccount() == null) ? 0 : getWechatAccount().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", counselorId=").append(counselorId);
        sb.append(", name=").append(name);
        sb.append(", gender=").append(gender);
        sb.append(", photo=").append(photo);
        sb.append(", education=").append(education);
        sb.append(", major=").append(major);
        sb.append(", certification=").append(certification);
        sb.append(", experienceYears=").append(experienceYears);
        sb.append(", specialization=").append(specialization);
        sb.append(", workStyle=").append(workStyle);
        sb.append(", consultationFee=").append(consultationFee);
        sb.append(", city=").append(city);
        sb.append(", consultationMethod=").append(consultationMethod);
        sb.append(", consultationType=").append(consultationType);
        sb.append(", targetGroup=").append(targetGroup);
        sb.append(", introduction=").append(introduction);
        sb.append(", rating=").append(rating);
        sb.append(", totalConsultations=").append(totalConsultations);
        sb.append(", status=").append(status);
        sb.append(", createdAt=").append(createdAt);
        sb.append(", updatedAt=").append(updatedAt);
        sb.append(", contactPhone=").append(contactPhone);
        sb.append(", birthDate=").append(birthDate);
        sb.append(", contactEmail=").append(contactEmail);
        sb.append(", wechatAccount=").append(wechatAccount);
        sb.append("]");
        return sb.toString();
    }
}